<script>
    function createProject()
    {
        var projectName = $("#project").val();
        post("project",{"method":"addProject","projectName":projectName}, projectHandler);
    }

    function projectHandler(data)
    {
        console.log(data);
    }

    setContentName('Add new project');
    focus("project");
</script>

<div class="largeCategory">
    Add project
</div>

<p>Project name: <input id="project" type="text" size="20"></p>
<span class="button" onclick="createProject()">Create projects</span>

